package cn.iocoder.yudao.module.wine.controller.admin.supplyorderitem.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 订单项信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SupplyOrderItemPageReqVO extends PageParam {

    @Schema(description = "订单ID", example = "8671")
    private Long orderId;

    @Schema(description = "供求信息ID", example = "15187")
    private Long infoId;

    @Schema(description = "购买的瓶数")
    private Integer quantity;

    @Schema(description = "购买的件数")
    private Integer packages;
    /**
     * 单价，单位：元
     */
    @Schema(description = "单价，单位：元", example = "29756")
    private BigDecimal salePrice;

    @Schema(description = "应付金额（总），单位：元", example = "29756")
    private BigDecimal payPrice;

    @Schema(description = "保费金额（总），单位：分", example = "3055")
    private Integer premiumPrice;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}